import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:search_people/utils/util.dart';

import '../../../../../value/topcolors.dart';
import '../index.dart';

/// hello
class PersonCardWidget extends GetView<DynamicPersonController> {
  const PersonCardWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 180.r,
      margin: EdgeInsets.only(top: 2.r),
      padding: EdgeInsets.symmetric(horizontal: 12.r, vertical: 15.r),
      decoration: BoxDecoration(
          color: Colors.white,
          border: Border(
            bottom: BorderSide(
              color: TopColors.bg,
              width: 8.r,
            ),
          )),
      child: Row(
        children: [
          loadImage(
            width: 110.r,
            height: 140.r,
          ),
          SizedBox(
            width: 15.r,
          ),
          Expanded(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  '罗云峰',
                  style: TextStyle(
                    color: TopColors.black_33,
                    fontSize: 16.sp,
                    fontWeight: FontWeight.bold,
                  ),
                ),
                Text(
                  '职务：合肥市委副书记、市长',
                  style: TextStyle(
                    color: TopColors.black_66,
                    fontSize: 14.sp,
                    fontWeight: FontWeight.bold,
                  ),
                ),
                Flexible(
                  child: Text(
                    '本周关键词：疫情防控；金融；观创；信访；中医药；',
                    style: TextStyle(
                      color: TopColors.black_99,
                      fontSize: 12.sp,
                      fontWeight: FontWeight.bold,
                    ),
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
